<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      FAAD2-2.8.8
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;42.&nbsp;Multimedia Libraries and Drivers
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="faac.html" title="FAAC-1.29.9.2">Prev</a>
          <p>
            FAAC-1.29.9.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="fdk-aac.html" title="fdk-aac-2.0.1">Next</a>
          <p>
            fdk-aac-2.0.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="libdriv.html" title=
          "Chapter&nbsp;42.&nbsp;Multimedia Libraries and Drivers">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="faad2" name="faad2"></a>FAAD2-2.8.8
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to FAAD2
        </h2>
        <p>
          <span class="application">FAAD2</span> is a decoder for a lossy
          sound compression scheme specified in MPEG-2 Part 7 and MPEG-4 Part
          3 standards and known as Advanced Audio Coding (AAC).
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://downloads.sourceforge.net/faac/faad2-2.8.8.tar.gz">https://downloads.sourceforge.net/faac/faad2-2.8.8.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 28f6116efdbe9378269f8a6221767d1f
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.0 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 12 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.2 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Sample AAC file: <a class="ulink" href=
                "http://www.nch.com.au/acm/sample.aac">http://www.nch.com.au/acm/sample.aac</a>
                (7 KB)
              </p>
            </li>
          </ul>
        </div>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/faad2">http://wiki.linuxfromscratch.org/blfs/wiki/faad2</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of FAAD2
        </h2>
        <p>
          Install <span class="application">FAAD2</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr --disable-static &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite. However, basic
          functionality can be tested by decoding the sample AAC file:
        </p>
        <pre class="userinput">
<kbd class="command">./frontend/faad -o sample.wav ../sample.aac</kbd>
</pre>
        <p>
          This should display a copyright message and the following
          information about the sample file:
        </p>
        <div class="literallayout">
          <p>
            <code class=
            "computeroutput">sample.aac&nbsp;file&nbsp;info:<br />
            ADTS,&nbsp;4.608&nbsp;sec,&nbsp;13&nbsp;kbps,&nbsp;16000&nbsp;Hz<br />

            <br />
            &nbsp;&nbsp;---------------------<br />
            &nbsp;|&nbsp;Config:&nbsp;&nbsp;2&nbsp;Ch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br />

            &nbsp;&nbsp;---------------------<br />
            &nbsp;|&nbsp;Ch&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;Position&nbsp;&nbsp;&nbsp;&nbsp;|<br />

            &nbsp;&nbsp;---------------------<br />
            &nbsp;|&nbsp;00&nbsp;|&nbsp;Left&nbsp;front&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br />

            &nbsp;|&nbsp;01&nbsp;|&nbsp;Right&nbsp;front&nbsp;&nbsp;&nbsp;&nbsp;|<br />

            &nbsp;&nbsp;---------------------</code>
          </p>
        </div>
        <p>
          Now play the result (requires the <span class=
          "command"><strong>aplay</strong></span> program from the <a class=
          "xref" href="alsa-utils.html" title=
          "alsa-utils-1.2.2">alsa-utils-1.2.2</a> package):
        </p>
        <pre class="userinput">
<kbd class="command">aplay sample.wav</kbd>
</pre>
        <p>
          <span class="command"><strong>aplay</strong></span> should identify
          the file as <span class="quote">&ldquo;<span class="quote">Signed
          16 bit Little Endian, Rate 16000 Hz, Stereo</span>&rdquo;</span>,
          and you should hear some piano notes.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">faad</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libfaad.so and libfaad_drm.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">None</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="faad-prog" name="faad-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>faad</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a command-line utility for decoding AAC and MP4 files.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libfaad" name="libfaad"></a><span class=
                    "term"><code class="filename">libfaad.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains functions for decoding AAC streams.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-09 10:02:12 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="faac.html" title="FAAC-1.29.9.2">Prev</a>
          <p>
            FAAC-1.29.9.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="fdk-aac.html" title="fdk-aac-2.0.1">Next</a>
          <p>
            fdk-aac-2.0.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="libdriv.html" title=
          "Chapter&nbsp;42.&nbsp;Multimedia Libraries and Drivers">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
